package com.asa.gametheory;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class GameTheory {
	
	
	public static void main(String[] args) {
		
		
		double[][] a = {{0,-1},{3,1}};//角色a
		double[][] b = {{0,3},{-1,1}};//角色b

		
//		pan(a, b);
		Player player_a = new Player(a, 2,0);
		Player player_b = new Player(b, 2,1);

		
		
		GameUtils.panone(a);
		GameUtils.panone(b);

		GameUtils.remove_Strategy(player_a);
		
		GameUtils.remove_Strategy(player_b);
		
		
		
		balace_point(player_a, player_b);
		
	}
	
	//找到均衡点
	public static void balace_point(Player player_a,Player player_b) {
		int n_a = player_a.getN();
		int n_b = player_b.getN();

		List<Integer> remove_a = player_a.getRemove();
		List<Integer> remove_b = player_a.getRemove();

//		player_a.getRemove();
//		player_b.getRemove();
		
		List<int[]> result = new ArrayList<int[]>();
		
		for (int i = 0; i < n_a; i++) {
			if (remove_a.contains(i)) {
				continue;
			}
			
			for (int j = 0; j < n_b; j++) {
				
				if (remove_b.contains(j)) {
					continue;
				}
				int[] asa = new int[2];
				asa[0] = i;
				asa[0] = j;
				result.add(asa);
			}
			
		}
		
		
		for (int i = 0; i < result.size(); i++) {
			int[] js = result.get(i);
			String string = Arrays.toString(js);
			System.out.println(string);
		}
		
		
		
	}
	
	
	
	
	
	
	
	
	
}
